package com.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mappers.DepotMapper;
import com.mappers.DepotMapper2;
import com.models.Depot;
import com.models.Depot2;

@Repository
public class DepotDao2 {
	@Autowired
	DepotMapper2 depotMapper2;
	
	public List<Depot2> findAll(){
	 return depotMapper2.findAll();
	}
	
	public Depot2 findById(int id){
	 return depotMapper2.findById(id);
		}
	
	public void add(Depot2 depot2){
		 depotMapper2.add(depot2);
	}
	
	
	
	
}
